package com.bw.service.impl.impl;

import com.bw.entity.Dict;
import com.bw.entity.Zhexiantu;
import com.bw.mapper.ZxtMapper;
import com.bw.service.ZxtService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
public class ZxtServiceImpl implements ZxtService {

    @Autowired
    ZxtMapper zxtMapper;

    @Override
    public List<Dict> listDanwei() {
        return zxtMapper.listDanwei();
    }

    @Transactional
    @Override
    public List<Zhexiantu> zxtByParam(Integer danweiId) {
        return zxtMapper.zxtByParam(danweiId);
    }
}
